<?php
//---------------------------------------------------------
//               Buddha Bless, No Bug !
//         User: wuxuehai Date: 2018/10/3 Time: 2:19 PM
//---------------------------------------------------------

use yii\helpers\Url;

$controller_id = Yii::$app->controller->id;
$action_id = Yii::$app->controller->action->id;
?>
            <!---footer-->
            <footer>
                <div class="container">
                    <div class="row">
                        <div class="col-md-3 col-sm-6 col-xs-12 width-set-50">
                            <div class="footer-details">
                                <ul class="list-unstyled footer-contact-list">
                                    <li>
                                        <i class="fa fa-map-marker fa-lg"></i>
                                        <p>成都市</p>
                                    </li>
                                    <li>
                                        <i class="fa fa-phone fa-lg"></i>
                                        <p><a href="tel:+1-202-555-0100">+86-18981850204</a></p>
                                    </li>
                                    <li>
                                        <i class="fa fa-envelope-o fa-lg"></i>
                                        <p><a href="mailto:demo@info.com">admin@qq.com</a></p>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="col-md-3 col-sm-6 col-xs-12 width-50 width-set-50">
                            <div class="footer-details">
                                <ul class="list-unstyled footer-links">
                                    <li class="<?= $action_id == 'index' ? 'active' : '' ?>"><a href="<?= Url::to(['/index/index'])?>">首页</a></li>
                                    <li class="<?= $action_id == 'about' ? 'active' : '' ?>"><a href="<?= Url::to(['/index/about'])?>">关于我们</a></li>
                                    <li class="<?= $action_id == 'gallery' ? 'active' : '' ?>"><a href="<?= Url::to(['/index/gallery'])?>">案列</a></li>
                                    <li class="<?= $action_id == 'news' ? 'active' : '' ?>"> <a href="<?= Url::to(['/index/news'])?>">新闻中心</a></li>
                                    <li class="<?= $action_id == 'contact' ? 'active' : '' ?>"> <a href="<?= Url::to(['/index/contact'])?>">联系我们</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="col-md-3 col-sm-12 col-xs-12">
                            <div class="footer-details">
                                <div class="row">
                                    <div class="instagram-images">
                                        <div id="instafeed"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3 col-sm-12 col-xs-12">
                            <div class="footer-details">
                                <div class="row">
                                    <div class="instagram-images">
                                        <div id="instafeed"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="copyright">
                        &copy; <?=date('Y')?> All right reserved. Designed by <a href="#" target="_blank">XueHai</a>
                    </div>

                </div>
            </footer>

            <!-- back to top -->
            <a style="display: none;" href="javascript:void(0);" class="scrollTop back-to-top" id="back-to-top">
                <span><i aria-hidden="true" class="fa fa-angle-up fa-lg"></i></span>
                <span>Top</span>
            </a>

        </div>

